/*
 * p_and_s.c - 指针和字符串
 */

#include <stdio.h>
int main(void)
{
    const char * mesg = "Don't be a fool!";
    const char * copy;
    copy = mesg;
    int a = 1;
    int * i = &a;
    printf("%d\n", *i);
    printf("%s\n", copy);
    printf("mesg = %s, &mesg = %p, value = %p\n", mesg ,&mesg, mesg);
    printf("copy = %s, &copy = %p, value = %p\n", copy ,&copy, copy);
    return 0;
}
